/**
 * Created by ZHOUSH on 1/12/2016.
 */
ngctrl.directive('dbTable', ['$document', '$window', 'RecursionHelper',
    function ($document, $window, RecursionHelper) {
        return {
            restrict: "EA",
            templateUrl: "/template/table",
            replace: true,
            scope: {
                table: '=dbBind'
            },
            compile: function (element) {
                return RecursionHelper.compile(element, function (scope, element, attrs) {
                    //console.log(scope);
                });
            }
        };
    }
]);